package  org.fantasy.common.util;

public class Constants {

	public static final String PAGE_START = "pageStart";

	public static final String PAGE_SIZE = "pageSize";

	public static final String PAGE_COUNT = "pageCount";
	
	public static final int MAX_PAGE_SIZE = 50;
	
	public static final int DEF_PAGE_SIZE = 50;
	
	public static final int DEF_PAGE_START = 1;

	public static final String STATE10X = "10X"; 

	public static final String STATE10A = "10A";
	
	// 异常级别定义
	public static final String EX_INFO = "INFO"; // 提示

	public static final String EX_WARN = "WARN"; // 警示

	public static final String EX_ERROR = "ERROR"; // 错误

	public static final String EX_FINAL = "FINAL"; // 严重错误

	public static final String XML_DOC_ROOT = "envelope";

	public static final String XML_DOC_BODY = "body";

	public static final String XML_PARAM_OPERATOR = "operator";

	public static final String XML_RESULT_ROOT = "result";

	public static final String XML_RESULT_ROW = "row";

	public static final String XML_TABLE_HEAD_REQ = "getTableHead";

	public static final String XML_SERVICE_SQL_MAP = "XML_SERVICE_SQL_MAP";

	public static final String XML_SERVICE_TABLE_HEAD = "XML_SERVICE_TABLE_HEAD";

	public static final String XML_SERVICE_TYPE = "SERVICE_TYPE";

	public static final String XML_SERVICE_BEAN = "SERVICE_BEAN";

	public static final String XML_SERVICE_RESULT_TYPE = "SERVICE_RESULT_TYPE";

	public static final String XML_SERVICE_RESULT_VOID = "VOID";

	public static final String XML_SERVICE_TYPE_QRY = "QRY";

	public static final String XML_SERVICE_TYPE_ADD = "ADD";

	public static final String XML_SERVICE_TYPE_MOD = "MOD";

	public static final String XML_SERVICE_TYPE_DEL = "DEL";

	public static final String PAGE_PARAM_START = "pageStart";

	public static final String PAGE_PARAM_GET_REC_COUNT = "recCountFlag";

	public static final String XML_PARAM_TYPE_INTEGER = "integer";

	public static final String XML_PARAM_TYPE_STRING = "string";

	public static final String XML_PARAM_TYPE_FLOAT = "float";

	public static final String XML_PARAM_TYPE_DOUBLE = "double";

	public static final String XML_PARAM_TYPE_DATE = "date";

	public static final String XML_PARAM_TYPE_XML = "xml";

	public static final String SIMP_TABLE_HEAD = "SIMP_TABLE_HEAD";

	public static final String SQL_BUILDER_MAP_NAME = "map";

	public static final String SQL_BUILDER_BUFF_NAME = "sql";

	/* --------------------配置文件加载路径 ------------------------------- */
	public static final String QUERY_CONFIG_PATH = "/query/";

	public static final String TABLE_CONFIG_PATH = "/table/";

	public static final String DEFAULT_DATA_SOURCE = "dataSource";

	public static final String DEFAULT_QRY_CENTER = "qryCenter";

	/**
	 * 当前查询SQL
	 */
	public static final String RUNTIME_QUERY = "RUNTIME_SQL";

	/**
	 * 当前查询服务名
	 */
	public static final String RUNTIME_QUERY_ID = "RUNTIME_SQL_ID";

	/**
	 * 当前查询表头
	 */
	public static final String RUNTIME_TABLEHEADS = "RUNTIME_TABLEHEADS";

	/**
	 * 请求参数
	 */
	public static final String REQUEST_PARAMETER = "REQUEST_PARAMETER";

	/* 数据库时间格式定义 */
	public static final String DATE_FORMAT = "YYYY-MM-DD";

	public static final String DATE_TIME_FORMAT = "YYYY-MM-DD HH24:MI:SS";

	public static final String DATE_FORMAT_NOBAR = "YYYYMMDD";

	public static final String DATE_TIME_FORMAT_NOBAR = "YYYYMMDDHH24MISS";

	/* Java中时间格式定义 */
	public static final String DATE_PATTERN = "yyyy-MM-dd";

	public static final String DATE_TIME_PATTERN = "yyyy-MM-dd HH:mm:ss";

	public static final String DATE_PATTERN_NOBAR = "yyyyMMdd";

	public static final String DATE_TIME_PATTERN_NOBAR = "yyyyMMddHHmmss";

}
